package com.dsj.app.service;

import com.github.pagehelper.Page;
import com.dsj.app.domain.DrugOutDO;
import com.dsj.app.domain.DrugOutFormDO;
import com.dsj.app.domain.SaleDO;
import com.dsj.app.domain.StaSaleDO;

import java.util.List;
import java.util.Map;

/**
 * 药品出库业务接口
 */
public interface DrugOutService {

  List<StaSaleDO> staSaleDay();

  List<StaSaleDO> staSaleMonth();

  List<StaSaleDO> staSaleYear();

  List<DrugOutDO> list(Map<String, Object> params);

  Page<SaleDO> saleList(Map<String, Object> params);

  int count();

  int countSale();

  int drugOutSave(DrugOutFormDO drugOutFormDO) throws IllegalArgumentException;

  int saleSave(DrugOutFormDO drugOutFormDO);

  /**
   * 检查库存下限
   */
  void checkLowerLimit();
}
